import {defineAsyncComponent} from "vue";
 //批量导出所有的component下面的表单组件
 const Components = import.meta.glob('@/components/formChildren/*.vue')
export const FormComponents = {}


Object.keys(Components).forEach((key) => {
  const name = key.replace(/^.+\/([^/]+)\.vue$/, '$1')
  FormComponents[name] = defineAsyncComponent(Components[key])
}) 

